<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

?>

<div class="supplier-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
        'options' => ['data-pjax'=>true],
        'layout' => 'inline',
    ]); ?>

    <?= $form->field($model, 'company')->textInput(['placeholder' => '公司名称']) ?>

    <?= $form->field($model, 'phone')->textInput(['placeholder' => '联系方式']) ?>

    <?= $form->field($model, 'name')->textInput(['placeholder' => '联系人']) ?>

    <!-- ?= //$form->field($model, 'address')->textInput(['placeholder' => '地址']) ? -->

    <?php  echo $form->field($model, 'mail')->textInput(['placeholder' => '邮箱']) ?>

    <?php // echo $form->field($model, 'desc') ?>

    <?php  echo $form->field($model, 'status')->dropdownList(Yii::$app->params['status'], ['prompt'=>'选择状态']) ?>

    <?php // echo $form->field($model, 'user_id') ?>

    <?php // echo $form->field($model, 'created_at') ?>

    <?php // echo $form->field($model, 'updated_at') ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
